import request from '@/utils/simple-request'

export function getIndices() {
  return request({
    url: '/indices',
    method: 'get'
  })
}

export function updateIndex(data) {
  return request({
    url: '/index',
    method: 'put',
    data
  })
}

export function deleteIndex(id) {
  return request({
    url: '/index',
    method: 'delete',
    params: id
  })
}
